<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<script type="text/javascript">
	function exee() {
		document.forms[0].action = "InputSubmit.do?method=exee";
		document.forms[0].submit();
	}

	function read() {
		document.forms[0].action = "InputSubmit.do?method=read";
		document.forms[0].submit();
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Input</title>
</head>
<body>
<html:form action="/InputSubmit" focus="username">
	<table border="0" width="100%">
		<tr>
			<th align="right">Username:</th>
			<td align="left"><html:text property="username" /></td>
		</tr>
		<tr>
			<th align="right">Password:</th>
			<td align="left"><html:password property="password"
				redisplay="false" /></td>
			<html:select property="hasImage">
				<html:options property="c" />
			</html:select>
		</tr>
	</table>
	<html:submit property="method">
		<bean:message key="button.exec" />
	</html:submit>
	<html:submit property="method">
		<bean:message key="button.add" />
	</html:submit>
	<html:submit property="method">
		<bean:message key="button.view" />
	</html:submit>
	<html:submit property="method">
		<bean:message key="button.update" />
	</html:submit>
	<html:submit property="method">
		<bean:message key="button.delete" />
	</html:submit>
</html:form>

<logic:messagesPresent message="true">
	<ul>
		<html:messages id="abc" message="true">
			<li><font color="red"><bean:write name="abc"
				filter="false" /></font></li>
		</html:messages>
	</ul>
</logic:messagesPresent>
</body>
</html>